from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework.response import Response
from app.models import UserModel
from app.ser import UserSer


class UserView(APIView):
    def get(self,request):
        u1 = UserModel.objects.all()
        user = UserSer(instance=u1,many=True)
        return Response(user.data)

